package com.ys.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ys.common.utils.PageUtils;
import com.ys.gulimall.product.entity.AttrEntity;
import com.ys.gulimall.product.vo.AttrGroupRelationVo;
import com.ys.gulimall.product.vo.AttrRespVo;
import com.ys.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author yeswater
 * @email ruobairuo@gmail.com
 * @date 2021-07-16 16:28:06
 */

public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);
	
	void saveAttr(AttrVo attr);
	
	PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String attrType);
	
	AttrRespVo getAttrInfo(Long attrId);
	
	void updateAttrById(AttrVo attr);
	
	List<AttrEntity> getRelationAttr(Long attrgroupId);
	
	void deleteRelation(AttrGroupRelationVo[] vos);
	
	PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);
	
	List<Long> selectSearchAttrs(List<Long> attrIds);
}

